//
// Created by longyunbo on 7/21/21.
//

#ifndef ANALYSIS_STACKVALUE_H
#define ANALYSIS_STACKVALUE_H
#include "../../tool/DataTranslate.h"

class StackValue {

private:
    DataTranslate* dt;


    int type;



    /**
     * 数据存储在这里的情况
     * 1.float
     * 2.long
     * */
     char* data;

     /**
      * 数据
      * */
      int val;

public:

    StackValue();

    StackValue(int type, int val);

    StackValue(int type, float v);

    StackValue(int type, long v);

    long* getLongData();

    int getIntData();

    float getfloatData();

    int getType();
    void setType( int va );
    ~StackValue();
};


#endif //ANALYSIS_STACKVALUE_H
